import Vue from 'vue';
import Router from 'vue-router';
import httpAxios from '../api/http';
import axios from 'axios';
import VueResource from 'vue-resource';
Vue.use(VueResource);
Vue.http.options.credentials=true;
Vue.use(Router);
var route=new Router({
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        
        {
            path: '/home',
            component: resolve => require(['../components/common/Home.vue'], resolve),
            children:[

                {
                    path: '/',
                    component: resolve => require(['../components/page/home/homepage.vue'], resolve), 
                	meta: { keepAlive: false },
                },
               
                
                

            ]
        },
    ]
})
route.beforeEach((to ,from ,next)=>{
	
    next();
})
export default route